import request from "../service/request"

function is (constructor, value) {
    return Object.prototype.toString.call(value) === '[object ' + constructor.name + ']';
}
//ES6 中参数必填的情况下默认的参数
function throwIfMissing  ()  {
    throw new Error('必须的参数并没有被传递');
}
export default {
    is,
    throwIfMissing
}